<template>
	<view class="sort-FIL">
		<view class="contents" v-for="(a,b) in FILs" :key="b">
			<sort-FILList :list="a"></sort-FILList>
		</view>
		<u-empty v-if="!FILs.length" marginTop="100" mode="list" icon="http://cdn.uviewui.com/uview/empty/history.png"></u-empty>
	</view>
</template>

<script>
	import lists from '../../components/sort-FILList/sort-FILList.vue'
	export default {
		components:{
			lists
		},
		data() {
			return {
				FILs:[],
				title: ''
			}
		},
		onLoad(op) {
			this.goods_class_id = op.goods_class_id
			uni.setNavigationBarTitle({ title: op.name })
		},
		methods: {
			getDate() {
				this.$api.sendRequest({
					url: this.$url.GOODS_ITC,
					data: {
						goods_class_id:this.goods_class_id,
						page:1
					},
					success: res => {
						this.FILs=res.data.data
					}
				});
			}
		},
		mounted() {
			this.getDate()
		}
	}
</script>
<style>
	page {
		background-color: #F3F3F3;
	}
</style>
<style scoped>
.sort-FIL{
	padding-top: 20rpx;
}
.contents{
	margin: 0px auto;
}
</style>
